from exts import db
from datetime import datetime

#建立模型
class DataModel(db.Model):
    __tablename__ = "历史记录"
    id = db.Column(db.Integer,primary_key = True,autoincrement=True)
    data1 = db.Column(db.Float,nullable=False)
    data2 = db.Column(db.Float,nullable=False)
    data3 = db.Column(db.Float,nullable=False)
    data4 = db.Column(db.Float,nullable=False)
    data5 = db.Column(db.Float,nullable=False)
    data6 = db.Column(db.Float,nullable=False)
    data7 = db.Column(db.Float,nullable=False)
    data8 = db.Column(db.Float,nullable=False)
    data9 = db.Column(db.Float,nullable=False)
    data10 = db.Column(db.Float,nullable=False)
    data11 = db.Column(db.Float,nullable=False)
    data12 = db.Column(db.Float,nullable=False)
    结果 = db.Column(db.String(100),nullable=False)
    时间 = db.Column(db.DateTime,default=datetime.now)


